/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.farmcode.api.plugin;

import com.farmcode.api.util.FARMCodeAPI;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Oscar Ivan Prado
 */
public class PluginContext {
    public static void instance() throws ConfigureException{
        try {
            String configPath = System.getProperty("com.farmcode.api.config");
            FARMCodeAPI.getProperties(new File(configPath));
        } catch (IOException ex) {
            Logger.getLogger(PluginContext.class.getName()).log(Level.SEVERE, null, ex);
            throw new ConfigureException(ex);
        }
    }    
}
